<#include "/java_copyright.include">
<#assign className = table.className>
<#assign classNameLower = className?uncap_first>
package ${basepackage}.service;

import java.util.List;

public interface BaseService<bean,query>  {
	int countByExample(query example);

	int deleteByExample(query example);

	int deleteByPrimaryKey(Long id);

	int insert(bean record);

	int insertSelective(bean record);

	List<bean> selectByExample(query example);

	bean selectByPrimaryKey(Long id);

	PageListResult<bean> selectPageByExample(query example);

	int updateByPrimaryKeySelective(bean record);

	int updateByPrimaryKey(bean record);
}
